# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-bluemsx
pkgver=0_git20220213
pkgrel=0
_commit="92d0c41b4973854114c7b2d06ab727a266d404c5"
pkgdesc="port of blueMSX to the libretro API"
url="https://github.com/libretro/blueMSX-libretro"
arch="all"
makedepends="zlib-dev"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/blueMSX-libretro/archive/$_commit.tar.gz
	patch-unbundle.patch
	"
builddir="$srcdir/blueMSX-libretro-$_commit"
options="!check" # No tests

build() {
	rm -rf deps
	make -f Makefile.libretro
}

package() {
	install -Dm644 bluemsx_libretro.so "$pkgdir"/usr/lib/libretro/bluemsx_libretro.so
}

sha512sums="
eedbdc2f47dc2eadd381b7a4abdc37eb132ffb43d1453f951a7b5778543e9cc4468d20cffeced59e85b2d10c6107fe1829c261c0199a012fd418b536f6d4554a  libretro-bluemsx-92d0c41b4973854114c7b2d06ab727a266d404c5.tar.gz
27bd632aace1acbc7c0dd30d0d2576c08dcc52b88a81296e0c1c7e845d92f6ffb901f133a9154a8b05ad36667d1353bd3894b52f226e5a20e48c637b27a3ec11  patch-unbundle.patch
"
